package hcn.protocol.brandnew.dengji.jianchayuyue;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 检查项目的可预约日期查询-响应消息（成功） - ODS_02070008_SUC
 * 医共体模型有误,该模型手动维护
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryAppointDateResponse extends BaseRequest {

    @XmlElement(name = "Item")
    private Item item;

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Item {

        /**
         * 检查申请单号
         */
        @XmlElement(name = "RequestId")
        private String requestId;
        /**
         * 检查项目代码
         */
        @XmlElement(name = "ItemCode")
        private String itemCode;
        /**
         * 检查项目名称
         */
        @XmlElement(name = "ItemName")
        private String itemName;

        @XmlElement(name = "Date")
        private List<AppointDate> appointDates;

        public String getRequestId() {
            return requestId;
        }

        public void setRequestId(String requestId) {
            this.requestId = requestId;
        }

        public String getItemCode() {
            return itemCode;
        }

        public void setItemCode(String itemCode) {
            this.itemCode = itemCode;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public List<AppointDate> getAppointDates() {
            return appointDates;
        }

        public void setAppointDates(List<AppointDate> appointDates) {
            this.appointDates = appointDates;
        }
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    public static class AppointDate {
        /**
         * 预约队列
         */
        @XmlElement(name = "AppointsQueue")
        private String appointsQueue;
        /**
         * 预约日期yyyymmdd
         */
        @XmlElement(name = "AppointsDate")
        private String appointsDate;
        /**
         * 预约名称
         */
        @XmlElement(name = "AppointsQueueName")
        private String appointsQueueName;


        public String getAppointsQueue() {
            return appointsQueue;
        }

        public void setAppointsQueue(String appointsQueue) {
            this.appointsQueue = appointsQueue;
        }

        public String getAppointsDate() {
            return appointsDate;
        }

        public void setAppointsDate(String appointsDate) {
            this.appointsDate = appointsDate;
        }

        public String getAppointsQueueName() {
            return appointsQueueName;
        }

        public void setAppointsQueueName(String appointsQueueName) {
            this.appointsQueueName = appointsQueueName;
        }
    }

}
